package org.example.netty.demo.chapter2;

import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @author ： minzhiwei
 * create by 2020/1/13 19:21
 * @description
 */
public class ChannelInboundHandler2 extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println(this.getClass().getName());
        super.channelRead(ctx, msg);
//        ctx.channel().writeAndFlush(Unpooled.wrappedBuffer("aaa".getBytes()));
    }
}
